{"ast":null,"code":"import { FormProvider as RcFormProvider } from 'rc-field-form';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nexport const FormContext = /*#__PURE__*/React.createContext({\n  labelAlign: 'right',\n  vertical: false,\n  itemRef: () => {}\n});\nexport const NoStyleItemContext = /*#__PURE__*/React.createContext(null);\nexport const FormProvider = props => {\n  const providerProps = omit(props, ['prefixCls']);\n  return /*#__PURE__*/React.createElement(RcFormProvider, Object.assign({}, providerProps));\n};\nexport const FormItemPrefixContext = /*#__PURE__*/React.createContext({\n  prefixCls: ''\n});\nexport const FormItemInputContext = /*#__PURE__*/React.createContext({});\nexport const NoFormStyle = _ref => {\n  let {\n    children,\n    status,\n    override\n  } = _ref;\n  const formItemInputContext = useContext(FormItemInputContext);\n  const newFormItemInputContext = useMemo(() => {\n    const newContext = Object.assign({}, formItemInputContext);\n    if (override) {\n      delete newContext.isFormItemInput;\n    }\n    if (status) {\n      delete newContext.status;\n      delete newContext.hasFeedback;\n      delete newContext.feedbackIcon;\n    }\n    return newContext;\n  }, [status, override, formItemInputContext]);\n  return /*#__PURE__*/React.createElement(FormItemInputContext.Provider, {\n    value: newFormItemInputContext\n  }, children);\n};","map":{"version":3,"names":["FormProvider","RcFormProvider","omit","React","useContext","useMemo","FormContext","createContext","labelAlign","vertical","itemRef","NoStyleItemContext","props","providerProps","createElement","Object","assign","FormItemPrefixContext","prefixCls","FormItemInputContext","NoFormStyle","_ref","children","status","override","formItemInputContext","newFormItemInputContext","newContext","isFormItemInput","hasFeedback","feedbackIcon","Provider","value"],"sources":["/data/messenger.client/node_modules/antd/es/form/context.js"],"sourcesContent":["import { FormProvider as RcFormProvider } from 'rc-field-form';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nexport const FormContext = /*#__PURE__*/React.createContext({\n  labelAlign: 'right',\n  vertical: false,\n  itemRef: () => {}\n});\nexport const NoStyleItemContext = /*#__PURE__*/React.createContext(null);\nexport const FormProvider = props => {\n  const providerProps = omit(props, ['prefixCls']);\n  return /*#__PURE__*/React.createElement(RcFormProvider, Object.assign({}, providerProps));\n};\nexport const FormItemPrefixContext = /*#__PURE__*/React.createContext({\n  prefixCls: ''\n});\nexport const FormItemInputContext = /*#__PURE__*/React.createContext({});\nexport const NoFormStyle = _ref => {\n  let {\n    children,\n    status,\n    override\n  } = _ref;\n  const formItemInputContext = useContext(FormItemInputContext);\n  const newFormItemInputContext = useMemo(() => {\n    const newContext = Object.assign({}, formItemInputContext);\n    if (override) {\n      delete newContext.isFormItemInput;\n    }\n    if (status) {\n      delete newContext.status;\n      delete newContext.hasFeedback;\n      delete newContext.feedbackIcon;\n    }\n    return newContext;\n  }, [status, override, formItemInputContext]);\n  return /*#__PURE__*/React.createElement(FormItemInputContext.Provider, {\n    value: newFormItemInputContext\n  }, children);\n};"],"mappings":"AAAA,SAASA,YAAY,IAAIC,cAAc,QAAQ,eAAe;AAC9D,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAC3C,OAAO,MAAMC,WAAW,GAAG,aAAaH,KAAK,CAACI,aAAa,CAAC;EAC1DC,UAAU,EAAE,OAAO;EACnBC,QAAQ,EAAE,KAAK;EACfC,OAAO,EAAE,MAAM,CAAC;AAClB,CAAC,CAAC;AACF,OAAO,MAAMC,kBAAkB,GAAG,aAAaR,KAAK,CAACI,aAAa,CAAC,IAAI,CAAC;AACxE,OAAO,MAAMP,YAAY,GAAGY,KAAK,IAAI;EACnC,MAAMC,aAAa,GAAGX,IAAI,CAACU,KAAK,EAAE,CAAC,WAAW,CAAC,CAAC;EAChD,OAAO,aAAaT,KAAK,CAACW,aAAa,CAACb,cAAc,EAAEc,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEH,aAAa,CAAC,CAAC;AAC3F,CAAC;AACD,OAAO,MAAMI,qBAAqB,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